package 结构型模式.装饰者模式;
//装饰者类（抽象装饰者角色）
public abstract class Garnish extends FastFood{
    //声明快餐类的变量（聚合）
    private FastFood fastFood;

    public FastFood getFastFood(){
        return fastFood;
    }//get方法

    public Garnish(FastFood fastFood) {
        this.fastFood = fastFood;
    }//构造函数

    public Garnish(float price, String desc,FastFood fastFood) {
        super(price, desc);
        this.fastFood=fastFood;
    }//构造甘薯
}
